package com.etc.dao;

import com.etc.entity.Video;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * (Video)表数据库访问层
 */
@Repository
public interface VideoDao {
    
    /**
     * 查询所以视频
     * @return
     */
    //List<Video> queryVideo();
    List<Video> sortVideo(@Param("typeName") String typeName);
    int addVideo(@Param("video") Video video);
    /**
     * 按id删除视频
     * @return
     */
    int deleteVideo(@Param("videoId") String videoId);
    List<Video> seekVideo(@Param("videoName") String videoName);
}
